package com.health.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Spinner;
import android.widget.TextView;

import com.health.R;

/**
 * Created by nova on 2018/6/20.
 * 添加家庭成员
 */

public class QyinfoMemLinearLayout extends LinearLayout {
    private Context context;
    public LinearLayout liner_item;
    public Spinner spinner_relationname;
    private TextView tv_member_info;
    public Button btn_delete ;
    public QyinfoMemLinearLayout(Context context) {
        super(context);
        LayoutInflater inflater = LayoutInflater.from(context);
        final View view = inflater.inflate(R.layout.qyinfo_member_add_item, null);
        liner_item = (LinearLayout) findViewById(R.id.liner_item);
        spinner_relationname= (Spinner) view.findViewById(R.id.spinner_relationname);
        tv_member_info= (TextView) view.findViewById(R.id.tv_member_info);
        btn_delete= (Button) view.findViewById(R.id.btn_delete);
        addView(view);
    }
    public QyinfoMemLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
        LayoutInflater inflater = LayoutInflater.from(context);
        final View view = inflater.inflate(R.layout.qyinfo_member_add_item, null);
        liner_item = (LinearLayout) findViewById(R.id.liner_item);
        spinner_relationname= (Spinner) view.findViewById(R.id.spinner_relationname);
        tv_member_info= (TextView) view.findViewById(R.id.tv_member_info);
        btn_delete= (Button) view.findViewById(R.id.btn_delete);

        addView(view);
    }
}
